import 'package:get/get_navigation/src/routes/get_route.dart';
import 'package:hygf/bean/AddOperation%20.dart';
import 'package:hygf/page/home/allnet/net_record/view.dart';
import 'package:hygf/page/home/allnet/un_net/view.dart';
import 'package:hygf/page/home/approval/un_approval/view.dart';
import 'package:hygf/page/home/construct/construct_record/view.dart';
import 'package:hygf/page/home/construct/un_construct/view.dart';
import 'package:hygf/page/home/data/station_list/view.dart';
import 'package:hygf/page/home/operation/operation_detail/view.dart';
import 'package:hygf/page/home/scan/view.dart';

import '../page/MainPage.dart';
import '../page/home/approval/approval_record/view.dart';
import '../page/home/business/view.dart';
import '../page/home/customer_detail/CustomerDetailPage.dart';
import '../page/home/customer_profile/view.dart';
import '../page/home/data/station_detail/view.dart';
import '../page/home/exploration/exploration_record/view.dart';
import '../page/home/exploration/exploration_task/view.dart';
import '../page/home/operation/add_operation/view.dart';
import '../page/home/operation/oprecord/view.dart';
import '../page/home/operation/task/view.dart';
import '../page/login/view.dart';
import '../page/test/test_file_picker_widget_page.dart';
import '../page/webview/view.dart';

/// 路由配置
class RouteConfig {
  /// 登录
  static const String login = "/login";
  /// 首页
  static const String main = "/home";
  /// 商务录入
  static const String addBusiness = "/home/business";
  /// 客户档案
  static const String customerProfile = "/home/customer_profile";
  /// 待勘探任务
  static const String explorationTask = "/home/exploration/exploration_task";
  /// 勘探记录
  static const String explorationRecord =
      "/home/exploration/exploration_record";
  /// 运维任务
  static const String operationTask = "/home/operation/task";
  /// 运维记录
  static const String operationRecord = "/home/operation/oprecord";
  static const String addOperation = "/page/home/operation/add_operation";
  /// webView
  static const String webView = "/page/webview";
  static const String customerDetail = "/page/customer_detail";
  static const String unApproval = "/page/approval/un_approval";
  static const String approvalRecord = "/page/approval/start_approval";
  static const String unConstruct = "/page/construct/un_construct";
  static const String constructRecord = "/page/construct/construct_record";
  static const String unNet = "/page/allnet/un_net";
  static const String netRecord = "/page/allnet/net_record";
  static const String scanPage = "/page/home/scan";
  static const String operationDetail = "/page/home/operation/operation_detail";
  static const String stationListPage = "/page/data/station_list";
  static const String stationDetailPage = "/page/data/station_detail";
  static const String testPage = "/page/test";

  static final List<GetPage> getPages = [
    GetPage(name: main, page: () => MainPage()),
    GetPage(name: login, page: () => LoginPage()),
    GetPage(name: addBusiness, page: () => BusinessPage()),
    GetPage(name: operationTask, page: () => TaskPage()),
    GetPage(name: operationRecord, page: () => OprecordPage()),
    GetPage(name: customerProfile, page: () => CustomerProfilePage()),
    GetPage(name: explorationTask, page: () => ExplorationTaskPage()),
    GetPage(name: explorationRecord, page: () => ExplorationRecordPage()),
    GetPage(name: webView, page: () => WebViewPage()),
    GetPage(name: customerDetail, page: () => CustomerDetailPage()),
    GetPage(name: unConstruct, page: () => UnconstructPage()),
    GetPage(name: constructRecord, page: () => ConstructRecordPage()),
    GetPage(name: unNet, page: () => UnNetPage()),
    GetPage(name: netRecord, page: () => NetRecordPage()),
    GetPage(name: unApproval, page: () => UnApprovalPage()),
    GetPage(name: approvalRecord, page: () => ApprovalRecordPage()),
    GetPage(name: scanPage, page: () => ScanPage()),
    GetPage(name: operationDetail, page: () => OperationDetailPage()),
    GetPage(name: addOperation, page: () => AddOperationPage()),
    GetPage(name: stationListPage, page: () => StationListPage()),
    GetPage(name: stationDetailPage, page: () => StationDetailPage()),
    GetPage(name: testPage, page: () => TestFilePickerWidgetPage())
  ];
}
